package com.siebel.CustomUI;

public class BGH_spc_spcAdd_spcContactProxy implements com.siebel.CustomUI.BGH_spc_spcAdd_spcContact_PortType {
  private String _endpoint = null;
  private com.siebel.CustomUI.BGH_spc_spcAdd_spcContact_PortType bGH_spc_spcAdd_spcContact_PortType = null;
  
  public BGH_spc_spcAdd_spcContactProxy() {
    _initBGH_spc_spcAdd_spcContactProxy();
  }
  
  public BGH_spc_spcAdd_spcContactProxy(String endpoint) {
    _endpoint = endpoint;
    _initBGH_spc_spcAdd_spcContactProxy();
  }
  
  private void _initBGH_spc_spcAdd_spcContactProxy() {
    try {
      bGH_spc_spcAdd_spcContact_PortType = (new com.siebel.CustomUI.BGH_spc_spcAdd_spcContact_ServiceLocator()).getBGH_spc_spcAdd_spcContact();
      if (bGH_spc_spcAdd_spcContact_PortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)bGH_spc_spcAdd_spcContact_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)bGH_spc_spcAdd_spcContact_PortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (bGH_spc_spcAdd_spcContact_PortType != null)
      ((javax.xml.rpc.Stub)bGH_spc_spcAdd_spcContact_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.siebel.CustomUI.BGH_spc_spcAdd_spcContact_PortType getBGH_spc_spcAdd_spcContact_PortType() {
    if (bGH_spc_spcAdd_spcContact_PortType == null)
      _initBGH_spc_spcAdd_spcContactProxy();
    return bGH_spc_spcAdd_spcContact_PortType;
  }
  
  public com.siebel.CustomUI.AddContact_Output addContact(com.siebel.CustomUI.AddContact_Input addContact_Input) throws java.rmi.RemoteException{
    if (bGH_spc_spcAdd_spcContact_PortType == null)
      _initBGH_spc_spcAdd_spcContactProxy();
    return bGH_spc_spcAdd_spcContact_PortType.addContact(addContact_Input);
  }
  
  
}